package com.framework.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.framework.dao.PushConfigDao;
import com.framework.entity.push.PushConfig;
import com.framework.service.PushConfigService;
import org.springframework.stereotype.Service;

/**
 * 推送配置业务类
 * @author wq
 */
@Service("pushConfigService")
public class PushConfigServiceImpl extends ServiceImpl<PushConfigDao,PushConfig> implements PushConfigService {

    @Override
    public PushConfig queryPushConfigByDeptId(Long deptId) {
        PushConfig pushConfig=new PushConfig();
        pushConfig.setDeptId(deptId);
        return baseMapper.selectOne(pushConfig);
    }
}
